package com.cos.lession50.common;

import com.alibaba.druid.pool.DruidDataSource;
import org.apache.ibatis.datasource.pooled.PooledDataSourceFactory;

/**
 * @author: COS
 * @time: 2022/3/3 11:13
 * @description:
 * 创建一个自定义的数据库连接池类 ,继承PooledDataSourceFactory
 */
public class MyDataSources extends PooledDataSourceFactory {
    public MyDataSources() {
        //指定数据源是德鲁伊
        this.dataSource=new DruidDataSource();
    }
}
